package com.wiscamp.ninechapters.problems.domain.models.problems.questions;

import com.wiscamp.ninechapters.problems.enums.Actions;
import cube.ddd.domain.Entity;
import lombok.Data;

/**
 * 选项
 */
@Data
public class Option implements Entity {
    /**
     * 选线编号
     */
    private long optionId;

    /**
     * 体编号
     */
    private long problemId = 0;

    /**
     * 问题编号
     */
    private long questionId = 0;

    /**
     * 选项序号
     */
    private int optionIndex;

    /**
     * 选项超文本
     */
    private String optionHypertext;

    /**
     * 是否正确答案
     */
    private boolean correctAnswer;

    /**
     * 锚点位置
     */
    private int anchorLocation = 0;

    /**
     * 选项分组序号
     */
    private int optionGroupIndex = 0;

    /**
     * 操作：CREATE / UPDATE / DELETE
     */
    private Actions action = Actions.NONE;

    public Option() {
    }

}
